<!DOCTYPE html>
<html lang="en">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<head>
    <meta charset="UTF-8">
    <title>text</title>
    <script type="text/javascript" src="../lib/jquery-2.0.3.min.js"></script>
    <script>
        /*var iframe;
        window.onload = function () {
            iframe= document.getElementById('ifr');
            iframe.height=window.innerHeight;
        };*/
        function gowx() {
            var url = 'http://mp.weixin.qq.com/s/mEZVguAwAQmjBhifYsg3rw';
            window.open(url)//, "theFrame");
            /*var showSrc = url;
            $.get( showSrc, function (response){
                var html = response;
                html = html.replace(/data-src/g, "src").replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/g, '').replace(/https/g,'http');

                var html_src = 'data:text/html;charset=utf-8,' + html;

                //iframe.src = html_src;
                var bodyInner = html.match(/<body[^>]*>[\s\S]*<\/body>/gi);
                console.log(bodyInner);
                //var bodyInner = thisV.getBody(html,REG_BODY);
                //bodyInner = '<div class="bodyHtml">'+bodyInner +'</div>'
                $('#casesCon').append(bodyInner);
            });*/
        }
        $.ajaxPrefilter( function (options) {
            if (options.crossDomain && jQuery.support.cors) {
                var http = (window.location.protocol === 'http:' ? 'http:' : 'https:');
                options.url = http + '//cors-anywhere.herokuapp.com/' + options.url;
            }
        });
        window.addEventListener("touchstart",function(evt){
            console.log(evt)
        },false)

    </script>
</head>
<body>
    <button onclick="gowx()">按钮跳转</button>
    <!--<iframe id="ifr" name="theFrame" width="100%" height="100%" frameborder="0" ></iframe>-->
    <!--<div id="casesCon"></div>-->
</body>
</html>